package com.macro.mall.portal.controller;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.model.CmsFeedback;
import com.macro.mall.model.CmsFeedbackCategory;
import com.macro.mall.model.CmsHelp;
import com.macro.mall.portal.service.FeedBackService;
import com.macro.mall.portal.service.HelpService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 帮助中心
 */
@Controller
@Api(tags = "PmsHelpController")
@Tag(name = "PmsHelpController", description = "帮助中心")
@RequestMapping("/help")
public class PmsHelpController {
    @Autowired
    private HelpService helpService;

    @ApiOperation("查看隐私政策和用户协议 0隐私政策 1用户协议 3登录是否隐藏 4语言切换")
    @RequestMapping(value = "/selPolicyAgreement", method = RequestMethod.GET)
    @ResponseBody
    public CommonResult<CmsHelp> selPolicyAgreement(@RequestParam Integer type) {
        CmsHelp cmsHelp =  helpService.selPolicyAgreement(type);
        return CommonResult.success(cmsHelp);
    }



}
